#!/usr/bin/make -f

CFLAGS=$(shell pkg-config --cflags wlroots)
LIBS=$(shell pkg-config --libs wlroots)

a.out: debian/tests/test.c
	gcc $(CFLAGS) $< $(LIBS) -lwayland-server
	@echo "Build test of $< succeeded"
	WLR_BACKENDS=headless ./a.out
	@rm -f a.out
